home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
-
- if [ "$2" = "2.6.3-1" ]; then
- stat=`dpkg-statoverride --list /usr/bin/fusermount`
- if [ "$stat" = "root fuse 4754 /usr/bin/fusermount" ]; then
- dpkg-statoverride --remove /usr/bin/fusermount;
- elif [ "$stat" = "root fuse 4750 /usr/bin/fusermount" ]; then
- dpkg-statoverride --remove /usr/bin/fusermount;
- fi
- fi
-
- mv_conffile() {
- OLD="$1"
- NEW="$2"
- if [ -e "$OLD" ]; then
- md5sum="`md5sum \"$OLD\" | sed -e \"s/ .*//\"`"
- orig_md5sum="`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $OLD'{s/.* //;p}}\" /var/lib/dpkg/status`"
- if [ "$md5sum" != "$orig_md5sum" ]; then
- echo "Moving modified conffile $OLD to $NEW..."
- mv -f "$OLD" "$NEW"
- else
- echo "Removing obsolete conffile $OLD ..."
- rm -f "$OLD"
- fi
- fi
- }
-
- case "$1" in
- upgrade)
- if dpkg --compare-versions "$2" = "2.6.2-1ubuntu1"; then
- mv_conffile /etc/udev/rules.d/80-fuse.rules /etc/udev/rules.d/45-fuse.rules
- fi
- esac
-
-
-
-
- exit 0
-